﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class 分类号 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Code",
                table: "Classification",
                type: "varchar(10)",
                maxLength: 10,
                nullable: false,
                defaultValue: "")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9046), new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9050), new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9030), "D6E010F35B4AD3B030021CD712E27E2D", "EE03C1C336A7B0CE7BFCC544A643F8E490A0B6CBE83794CE99217E9AFE384A2FD4D436A8" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Code",
                table: "Classification");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9409), new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9414), new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9401), "2989021C230B7177DBB517FB323E0641", "F9DB1C0740D726F7703559DF205A169C2DAE661CC43734D8E95D93D3E4BB9A20E59DF2EA" });
        }
    }
}
